package com.robot.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebClientConfig {


    /**
     * 注册WebSocket的组件
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
    @Bean
    public WebClient webClient() {
        return WebClient.builder().build();
    }
}
